import { createApp } from 'vue'
import Vant from 'vant';
// 2. 引入组件样式
import 'vant/lib/index.css';
import './style.css'
import App from './App.vue'
import router from './router'; // 引入router
import store from "./store";
import directives from "./utils/directive"
import api from './api/api.js'
import axios from './utils/https.js'

const app =createApp(App)
app.use(router).use(Vant).use(store).use(directives)

// 通过vue提供的provide / Inject去提供全局变量
app.provide('$api',api)
app.provide('$axios',axios)

app.mount('#app')
